package com.example;

import java.math.BigDecimal;

public interface Bank {

    // 获取余额
    BigDecimal getTheBalance(Integer accountId) throws AccountNotExistException;

    // 存钱
    void store(Integer accountId, BigDecimal money);

    // 取钱
    void withdrawMoney(Integer accountId, BigDecimal money) throws InsufficientBalanceException, AccountNotExistException;
}
